 <%-------------------------------------------------------------------
 * 页面名称：/page/vnvtools/getChain.jsp
 * 功能描述：获得支付链页面
 * Action: cn.agiledata.bank.vnvtools.action.VnvtoolsAction
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%
	String path = request.getContextPath();
%>
<head>
<script type="text/javascript" src="<%=path%>/js/pagetitle.js"></script>
<script language="javascript">
function copyToClipBoard(){
	window.clipboardData.setData("Text",document.getElementById("chainUrl").value);
}

function showEffect(data) {
	window.open("<%=path%>/page/vnvtools/showOwnChain.do?url="+document.getElementById("chainUrl").value);
}

function toSubmit(){
	if(document.forms[0].chainRemark.value.length > 85){
		alert("个人说明字数不能大于85！");
		document.forms[0].chainRemark.focus();
	}else{
		document.forms[0].submit();
	}
}
</script>
</head>
<div id="mainFrame">
  <!-- include 我的账户左侧账户管理菜单 -->
   <jsp:include page="/page/myspace/left.jsp"/>
   <div class="rightSider">
      <div class="sub_title"><span class="bluefont18bdrop">获得支付链</span></div>
	  <div class="edit_pass">
	    <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
	      <html:form action="saveChain.do">
	      <tr>
            <td colspan="2" class="font_blue"><table width="100%" border="0" align="center" cellpadding="7" cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
              <tr>
                <td bgcolor="#fffdf5"><table width="100%" border="0" cellpadding="3" cellspacing="0">
                    <tr >
                      <td width="3%" height="25" valign="top" style="border-bottom:1px solid #ccc;"><img src="images/ren.gif" width="22" height="21" border="0" align="absmiddle" /></td>
                      <td width="97%" align="left" class="red12b" style="border-bottom:1px solid #ccc;">特别提醒</td>
                    </tr>
                    <tr>
                      <td valign="top">&nbsp;</td>
                      <td align="left" class="font_gray"><img src="images/arrow2.gif" width="16" height="16" align="absmiddle" /> 您只要通过<span class="text9green">邮件、QQ、MSN</span>等联络工具，将此链接发送给对方，对方打开此链接即可直接进入付款页面，向您付钱了！</td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td bgcolor="#FFFFFF"><span class="font_blue">
          <textarea name="chainUrl" cols="85" rows="8" style="border:1px solid #ccc;" readOnly ><bean:write name="account" property="chainUrl" /></textarea></span></td>
        </tr> 
        <tr>
           <td width="20%" align="right">&nbsp;</td>
           <td width="80%" bgcolor="#FFFFFF">
             <input type="button" name="copyThis" class="graybutton_stylelong" value="复制代码" onclick="copyToClipBoard();" />
             <input type="button" name="showThis" class="graybutton_stylelong" value="查看效果" onclick="showEffect('<bean:write name="account" property="chainUrl"/>');" />
           </td>
        </tr>
        <tr>
            <td align="right" valign="top">个人说明：</td>
           <td bgcolor="#FFFFFF"><span class="font_blue">
               <textarea name="chainRemark" cols="85" rows="5" style="border:1px solid #ccc;"><bean:write name="account" property="chainRemark" /></textarea>
            </span>　<br />
            <span class="font_gray">在此处填写你要显示的个人说明文字（85字内）：</span></td>
        </tr>
         <tr>
           <td align="right">&nbsp;</td>
           <td height="50" bgcolor="#FFFFFF">
             <input type="button" name="save" value="确 定" class="button_style" onclick="toSubmit();" />
           </td>
         </tr>
         </html:form>
       </table>
      </div>
     </div>
   </div>